package xing.domain.isv.suite;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/********************************
 * 文 件 名 :Crop.java
 * 创 建 人：陈天龙
 * 日    期：2017/8/24
 * 描   述：企业信息类
 * 版 本 号：v1.0.0
 ********************************/
@Entity
@Table(name="isv_corp")
public class Corp implements Serializable {

    private Long id;
    private Date gmtCreate;
    private Date gmtModified;
    /**
     * 钉钉平台企业id
     */
    private String corpId;
    /**
     * 企业邀请码
     */
    private String inviteCode;
    /**
     * 企业所属行业
     */
    private String industry;
    /**
     *企业名称
     */
    private String corpName;
    /**
     * 企业邀请链接.该链接可以邀请其他人加入企业
     */
    private String inviteUrl;
    /**
     * 企业是否认证
     */
    private boolean isAuthenticated;
    /**
     * 企业认证级别0：未认证，1：高级认证，2：中级认证，3：初级认证
     */
    private Integer authLevel;
    /**
     * 企业logo
     */
    private String corpLogoUrl;

    public boolean isAuthenticated() {
        return isAuthenticated;
    }

    public void setAuthenticated(boolean authenticated) {
        isAuthenticated = authenticated;
    }

    public Integer getAuthLevel() {
        return authLevel;
    }

    public void setAuthLevel(Integer authLevel) {
        this.authLevel = authLevel;
    }

    @Id
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public String getCorpId() {
        return corpId;
    }

    public void setCorpId(String corpId) {
        this.corpId = corpId;
    }

    public String getInviteCode() {
        return inviteCode;
    }

    public void setInviteCode(String inviteCode) {
        this.inviteCode = inviteCode;
    }

    public String getIndustry() {
        return industry;
    }

    public void setIndustry(String industry) {
        this.industry = industry;
    }

    public String getCorpName() {
        return corpName;
    }

    public void setCorpName(String corpName) {
        this.corpName = corpName;
    }

    public String getInviteUrl() {
        return inviteUrl;
    }

    public void setInviteUrl(String inviteUrl) {
        this.inviteUrl = inviteUrl;
    }

    public String getCorpLogoUrl() {
        return corpLogoUrl;
    }

    public void setCorpLogoUrl(String corpLogoUrl) {
        this.corpLogoUrl = corpLogoUrl;
    }

    @Override
    public String toString() {
        return "CorpVO{" +
                "id=" + id +
                ", gmtCreate=" + gmtCreate +
                ", gmtModified=" + gmtModified +
                ", corpId='" + corpId + '\'' +
                ", inviteCode='" + inviteCode + '\'' +
                ", industry='" + industry + '\'' +
                ", corpName='" + corpName + '\'' +
                ", inviteUrl='" + inviteUrl + '\'' +
                ", corpLogoUrl='" + corpLogoUrl + '\'' +
                '}';
    }
}
